<%@ page contentType="text/html;charset=UTF-8"  %>
<%@ include file="/common/taglibs.jsp" %>
<%@ page import="org.slf4j.Logger,org.slf4j.LoggerFactory" %>
<%@page import="com.sogoodsoft.util.InfosysUtils"%>
<%@page import="java.io.StringWriter"%>
<%@page import="java.io.PrintWriter"%>
<%
Logger logger = LoggerFactory.getLogger(getClass());
logger.error("操作异常！");
Exception e = (Exception)request.getAttribute("exception");
String estr = InfosysUtils.getExceptionStackTrace(e);
logger.error(estr);
estr = estr.replace("\"","\\\"");
estr = estr.replace("\'","\\'");
estr = estr.replace("\n","\\n");
estr = estr.replace("\r","\\r");
estr = estr.replace("\t","\\t");
String detail = e.getMessage()+"<p>";
detail+="<a style=\\\"cursor:hand\\\" onclick=\\\"$(this).next().next().toggle();\\\">详细细节</a>";
detail+="<a onclick=\\\"if(document.all){window.clipboardData.setData('text', $(this).next().html());alert(\\\'复制成功！\\\');}else{alert(\\\'你的浏览器不支持复制，请手动复制或者使用IE8！\\\');}\\\" style=\\\"cursor:hand\\\">复制</a>";
detail+="<TEXTAREA rows=\\\"10\\\" cols=\\\"50\\\" id=\\\"exceptionDetail\\\" style=\\\"display:none\\\">"+estr+"</TEXTAREA>";
detail+="</p>";
logger.error(estr);
%>
{
	statusCode:"300", 
	message:"<%=detail %>", 
	navTabId:"", 
	forwardUrl:"", 
	callbackType:""
}
